home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
Issue60
/
ClassEng
/
Listing1.pas
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Pascal/Delphi Source File
|
2000-06-28
|
359 b
|
15 lines
TMyClass = class
private
FMyProp1: Integer;
. . .
function GetMyProp2: Integer;
procedure SetMyProp2(Value: Integer);
public
property MyProp1: Integer read FMyProp1 write FMyProp1;
property MyProp2: Integer read GetMyProp2 write SetMyProp2;
end;
. . .
// examples of use in code
if MyObject.MyProp1 = 0 then
MyObject.MyProp2 := 0;